home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2006 October
/
wn148cd2.iso
/
Windows
/
Travailler
/
QuickZip
/
quickzip_460013.exe
/
{app}
/
Scripts
/
File
/
Akp Batch Zip.akp
< prev
next >
Wrap
Text File
|
2005-05-26
|
569b
|
23 lines
var i : integer;
fn : string;
function RemoveSlash(Input: string): string;
begin
if Input <> '' then
if Input[Length(Input)] = '\' then
Result := Copy(Input, 0, Length(Input) - 1)
else
Result := Input;
end;
begin
for i := 0 to Param.count -1 do
begin
if pos('*',Param.strings[i]) <> 0 then
fn := RemoveSlash(ExtractFilePath(Param.strings[i])) + '.zip' else
fn := ChangeFileExt(Param.strings[i],'.zip');
New(fn);
Writeln(fn);
Add(Param.strings[i]);
DoAdd;
end;
end.